/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sim_cognitive;

/**
 *
 * @author ambassador
 */
public class Node {

    private int id;
    private double[] frequencyValues;
    static int frequencyCount;

    public Node(int id, int frequencyCount) {
        this.id = id;
        frequencyValues = new double[frequencyCount];
        for (double d : frequencyValues) {
            d = 1;
        }
        print("Done");
        frequencyPrint(frequencyCount);
        
    }

    public void print(String str) {
        System.out.println("[N]" + this.id + "\t" + str);
    }
       
    public void frequencyPrint(int frequencyCount){
        System.out.println("[N]"+ this.id + "\n");
        for (int i = 0; i < frequencyCount ; i++) {
            System.out.println("freq"+ i + "=" + this.frequencyValues[i] +"\n");     
        }    
      }
    
    public boolean frequencycheck(Band band){
   
        return band.getAvailability();
        
    }
    }
    
